<template>
  <div class="cms-button" :class="`style_${type}`">
    <div class="play-button">
      <caret-right-outlined v-if="type === 1" style="align-self: center" />
      <p class="play-text">立即播放</p>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import cmsButtonStyleProps from './props'
import { CaretRightOutlined } from '@ant-design/icons-vue'

export default defineComponent({
  props: cmsButtonStyleProps,
  data() {
    return {
      baseUrl: '/src/components/cms/components/'
    }
  },
  components: {
    CaretRightOutlined
  }
})
</script>
<style scoped lang="less">
.cms-button {
  width: 375px;
  padding: 8px 16px;
  background-color: #fff;
  @apply flex justify-center;

  .play-text {
    text-align: center;
    font-size: 14px;
    line-height: 14px;
    color: #ffffff;
    font-weight: 400;
    align-self: center;
  }
  &.style_1 {
    .play-button {
      width: 90px;
      height: 32px;
      margin-left: 5px;
      background-image: linear-gradient(135deg, #ffa45d 0%, #ff613f 100%);
      border-radius: 6px;
      @apply flex justify-center;
    }
  }
  &.style_2 {
    .play-button {
      width: 90px;
      height: 32px;
      background: #fff1ee;
      border-radius: 16px;
    }
    .play-text {
      text-align: center;
      line-height: 32px;
      color: #ff613f;
    }
  }
  &.style_3 {
    .play-button {
      width: 90px;
      height: 32px;
      background: #fff;
      border-radius: 16px;
      border: 2px solid #ff613f;

      .play-text {
        text-align: center;
        line-height: 28px;
        color: #ff613f;
      }
    }
  }
}
</style>
